package com.rightsidetech.mall.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
public class PlatformGroundingReq implements Serializable {

    @ApiModelProperty(value = "上架状态0-上架其中代理商 1-上架全部代理商",required = true)
    @NotNull(message = "上架状态不可为空")
    @Range(min = 0,max = 1,message = "上架状态只有0和1")
    private Byte status;

    @ApiModelProperty(value = "商品id",required = true)
    @NotNull(message = "商品id不可为空")
    @Min(value = 0,message = "id不可为负数")
    private Long commodityId;

    @ApiModelProperty("多个代理商id")
    private List<Long> agentIds;
}
